<template>
  <TableDemo :key="reset" ref="ruleTable" v-bind="$attrs" />
</template>
<script>
import TableDemo from './tableDemo'
export default {
  props: ['RuleTable'],
  mounted() {
    // 初始化
    console.log('=====', this.reset)
    this.RuleTable.init(this)
  },
  data() {
    return {
      reset: 0,
    }
  },
  components: {
    TableDemo,
  },
  methods: {
    resetTable() {
      this.reset++
      this.$nextTick(() => {
        this.RuleTable.init(this)
      })
    },
  },
}
</script>
<style lang="scss" scoped>
</style>
